﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


[CreateAssetMenu(menuName = "GameProperty/AmmunitionState")]//弹药属性
public class AmmunitionProperty : ScriptableObject {
    [Header("范围：1-100"), Range(1, 100)]
    public int damage;//能造成的伤害
    [Header("范围：0-5"), Range(0, 5f)]
    public float range;//伤害范围
    [Header("范围：5-30"), Range(5, 30f)]
    public float speed;//飞行速度
    //public AmmunitionType ammunitionType;//弹药的类型
    public string ReturnOtherTag(string tag){
        if(tag == "Player")
        {
            tag = "Enemy";
        }
        else if(tag == "Enemy")
        {
            tag = "Player";
        }
        return tag;
    }
}
public enum AmmunitionType
{
    Bullet,
    Bomb,
    Rocket,
    Leaser,
    SpecialBomb,
    SpecialRocket
}